{{define "title"}}Input the confirmation code{{end}}

{{define "content"}}

<p>
Almost there! Switch back to the terminal and copy the confirmation code the
command line application is displaying right now into the field below. If you
got the code from anywhere else <b>stop now</b>. Whoever gave you the code may
be trying to impersonate you.
</p>

{{if .BadCode}}
<div class="alert" role="alert">
Invalid or expired code. Make sure to copy the code that is shown in the
terminal right now. It changes with time.
</div>
{{end}}

<div class="confirmation-form">
  <form method="POST" id="confirmation">
    <input
        type="text"
        id="confirmation_code"
        name="confirmation_code"
        placeholder="Confirmation code"
        autocomplete="off"
        spellcheck="false"
        autofocus>
  </form>
</div>

<div class="buttons">
  <div class="button-form">
    <button type="submit" form="confirmation">Confirm</button>
  </div>
  <div class="button-form">
    <form action="/cli/cancel" method="POST">
      <input type="hidden" name="state" value="{{.OAuthState}}">
      <button type="submit">Cancel</button>
    </form>
  </div>
</div>

{{end}}
